home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-28 | 867 b | 60 lines | [TEXT/MPS ] |
- {
- File: DebuggingGear.p
-
- Contains: *** put contents here ***
-
- Written by: Keith Stattenfield
-
- Copyright: © 1992 by Apple Computer, Inc., all rights reserved.
-
- Change History:
-
- 11/15/92 KSS Created
-
- To Do:
- }
-
- unit DebuggingGear;
-
- interface
-
- {$Z+} {$%+}
- procedure %_BP;
- procedure %_EP;
-
-
- implementation
- type
- LongintPtr = ^longint;
-
- var
- gBPCount : longint;
-
- procedure BP(pc : longint); C; external;
- procedure EP(pc : longint); C; external;
-
- function GetA6 : longint; inline $2E8E; { MOVE.L a6, (a7) }
-
- {$Z+} {$%+} {$D+}
- procedure %_BP;
- begin
- gBPCount := gBPCount + 1;
-
- if (gBPCount = 1) then
- BP(LongintPtr(LongintPtr(GetA6)^+4)^);
-
- gBPCount := gBPCount - 1;
- end;
-
- {$Z+} {$%+}
- procedure %_EP;
- begin
- gBPCount := gBPCount + 1;
-
- if (gBPCount = 1) then
- EP(LongintPtr(GetA6+4)^);
-
- gBPCount := gBPCount - 1;
- end;
-
- end.